#include <stdio.h>
#include "OrderedEntry.hpp"

using namespace BFT::order::statemanagement;

OrderedEntry::OrderedEntry(uint32_t _reqId, uint32_t _seqNo)
{
	reqId = _reqId;
	seqNo = _seqNo;
}

OrderedEntry::OrderedEntry()
{
	reqId = 0;
	seqNo = 0;
}

void OrderedEntry::set(uint32_t _reqId, uint32_t _seqNo)
{	
	reqId = _reqId;
	seqNo = _seqNo;
}

void OrderedEntry::printInfo()
{
	fprintf(stdout,"Ordered Entry information:\n");
	fprintf(stdout,"reqId: %d\n",reqId);
	fprintf(stdout,"seqNo: %d\n",seqNo);
}
